<a href="www.baidu.com"><a href="www.163.com">111</a></a>
<script>
var aaa='sada'

function name(params) {
    var aaa='bbb'
    console.log(aaa,window.aaa)
}

name()
console.log(aaa,window.aaa)
</script>